package panda.client.ui;

import panda.client.ui.widgets.DraggableCard;

public class SnapBorder {
	int xLeft;
	int yTop;
	DraggableCard card;
	
	public SnapBorder(DraggableCard card, int xl, int yt) {
		this.xLeft = xl;
		this.yTop = yt;
		this.card = card;
	}
	
	public DraggableCard getCard() {
		return card;
	}
	
	public int getxLeft() {
		return xLeft;
	}
	
	public int getyTop() {
		return yTop;
	}
	
	public String toString() {
		return "[left:" + xLeft + ", top:" + yTop  + "]";
	}
	
	public boolean equals(Object obj) {
		if(!(obj instanceof SnapBorder)) {
			return false;
		} else {
			SnapBorder sb = (SnapBorder) obj;
			return (xLeft == sb.xLeft) && (yTop == sb.yTop);
		}
	}
}